//package com.sporch.endpointProfile;
//
//import org.junit.Test;
//import org.junit.runner.RunWith;
//import org.kaaproject.kaa.client.DesktopKaaPlatformContext;
//import org.kaaproject.kaa.client.Kaa;
//import org.kaaproject.kaa.client.KaaClient;
//import org.kaaproject.kaa.client.SimpleKaaClientStateListener;
//import org.kaaproject.kaa.client.profile.ProfileContainer;
//import org.kaaproject.kaa.schema.sample.profile.OS;
//import org.kaaproject.kaa.schema.sample.profile.Profile;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.test.context.junit4.SpringRunner;
//
///**
// * @Author: czy
// * @Date: 2019/6/5 16:23
// */
//@RunWith(SpringRunner.class)
//@SpringBootTest
//public class ClientSideEPProfileDemo {
//    // Profile is an auto-generated class based on user defined schema.
//    Profile profile;
//
//    @Test
//    public void test(){
//        // Create instance of desktop Kaa client for Kaa SDK
//        KaaClient client = Kaa.newClient(new DesktopKaaPlatformContext(), new SimpleKaaClientStateListener(), true);
//
//        // Sample profile
//        profile = new Profile("id", OS.Linux, "3.17", "0.0.1-SNAPSHOT");
//        // Simple implementation of ProfileContainer interface that is provided by the SDK
//        client.setProfileContainer(new ProfileContainer() {
//            @Override
//            public Profile getProfile() {
//                return profile;
//            }
//        });
//
//        // 启动kaa
//        client.start();
//        // Update to profile variable
//        profile.setBuild("0.0.1-SNAPSHOT");
//        /**
//         *  Report update to Kaa SDK. Force delivery of updated profile to server.
//         *  向KAA SDK报告更新。强制将更新的配置文件传递到服务器。
//         */
//        client.updateProfile();
//    }
//}
